package com.javasm.gg;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;
@TableName("gg_goods_type")
public class GoodsType {
  @TableId(type = IdType.INPUT)
  private String id;
  private String typeName;
  @TableField(value="`desc`")
  private String desc;
  private String createTime;
  private String updateTime;
  private String pid;
  @TableField(exist = false)
  private List<GoodsType> children;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public String getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
  }

  public String getPid() {
    return pid;
  }

  public void setPid(String pid) {
    this.pid = pid;
  }

  public List<GoodsType> getChildren() {
    return children;
  }

  public void setChildren(List<GoodsType> children) {
    this.children = children;
  }
}
